.class public Lcom/instagram/creation/video/h/b;
.super Lcom/instagram/creation/video/gl/a;
.source "FilterYUVRenderer.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field protected a:Ljava/nio/FloatBuffer;

.field protected b:Ljava/nio/FloatBuffer;

.field private c:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Lcom/instagram/creation/video/gl/k;",
            ">;"
        }
    .end annotation
.end field

.field private d:Lcom/instagram/creation/video/e/r;

.field private e:Lcom/instagram/creation/video/e/p;

.field private f:Lcom/instagram/creation/video/gl/k;


# direct methods
.method public constructor <init>(Lcom/instagram/creation/video/e/p;)V
    .locals 2
    .parameter

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/instagram/creation/video/gl/a;-><init>()V

    .line 36
    iput-object p1, p0, Lcom/instagram/creation/video/h/b;->e:Lcom/instagram/creation/video/e/p;

    .line 37
    new-instance v0, Lcom/instagram/creation/video/e/r;

    invoke-direct {v0}, Lcom/instagram/creation/video/e/r;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/h/b;->d:Lcom/instagram/creation/video/e/r;

    .line 38
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/h/b;->c:Ljava/util/Queue;

    .line 40
    const/high16 v0, 0x3f80

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/instagram/creation/video/e/q;->a(FF)[F

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/e/q;->a([F)Ljava/nio/FloatBuffer;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/h/b;->a:Ljava/nio/FloatBuffer;

    .line 43
    const/4 v0, 0x0

    invoke-static {v0}, Lcom/instagram/creation/video/e/q;->a(I)[F

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/e/q;->a([F)Ljava/nio/FloatBuffer;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/h/b;->b:Ljava/nio/FloatBuffer;

    .line 46
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->e:Lcom/instagram/creation/video/e/p;

    iget-object v1, p0, Lcom/instagram/creation/video/h/b;->a:Ljava/nio/FloatBuffer;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/p;->a(Ljava/nio/FloatBuffer;)V

    .line 47
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->e:Lcom/instagram/creation/video/e/p;

    iget-object v1, p0, Lcom/instagram/creation/video/h/b;->b:Ljava/nio/FloatBuffer;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/p;->b(Ljava/nio/FloatBuffer;)V

    .line 48
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->f:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/k;->c()V

    .line 83
    return-void
.end method

.method public a(I)V
    .locals 1
    .parameter

    .prologue
    .line 59
    new-instance v0, Lcom/instagram/creation/video/gl/k;

    invoke-direct {v0, p1}, Lcom/instagram/creation/video/gl/k;-><init>(I)V

    iput-object v0, p0, Lcom/instagram/creation/video/h/b;->f:Lcom/instagram/creation/video/gl/k;

    .line 61
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->e:Lcom/instagram/creation/video/e/p;

    invoke-virtual {v0}, Lcom/instagram/creation/video/e/p;->c()I

    .line 62
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->d:Lcom/instagram/creation/video/e/r;

    invoke-virtual {v0}, Lcom/instagram/creation/video/e/r;->c()I

    .line 63
    return-void
.end method

.method public a(Lcom/instagram/creation/video/gl/i;)V
    .locals 3
    .parameter

    .prologue
    const v2, 0x8d40

    .line 71
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->f:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/k;->a()I

    move-result v0

    invoke-static {v2, v0}, Landroid/opengl/GLES20;->glBindFramebuffer(II)V

    .line 72
    iget-object v1, p0, Lcom/instagram/creation/video/h/b;->e:Lcom/instagram/creation/video/e/p;

    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->c:Ljava/util/Queue;

    invoke-interface {v0}, Ljava/util/Queue;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/k;->b()I

    move-result v0

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/e/p;->a(I)V

    .line 74
    invoke-static {}, Landroid/opengl/GLES20;->glFlush()V

    .line 76
    invoke-interface {p1}, Lcom/instagram/creation/video/gl/i;->a()I

    move-result v0

    invoke-static {v2, v0}, Landroid/opengl/GLES20;->glBindFramebuffer(II)V

    .line 77
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->d:Lcom/instagram/creation/video/e/r;

    iget-object v1, p0, Lcom/instagram/creation/video/h/b;->f:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v1}, Lcom/instagram/creation/video/gl/k;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/r;->a(I)V

    .line 78
    return-void
.end method

.method public a(Lcom/instagram/creation/video/gl/k;)V
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->c:Ljava/util/Queue;

    invoke-interface {v0, p1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z

    .line 52
    return-void
.end method

.method public b(I)V
    .locals 1
    .parameter

    .prologue
    .line 66
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->f:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/gl/k;->a(I)V

    .line 67
    return-void
.end method

.method public c()Lcom/instagram/creation/video/gl/k;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/instagram/creation/video/h/b;->c:Ljava/util/Queue;

    invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/gl/k;

    return-object v0
.end method
